<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 需求：页面弹出对话框，'你爱我吗'，如果输入'爱'，则结束，否则一直弹出对话框
        while(true) {
            let str = prompt('你爱我吗')
            if (str === '爱') {
                break
            }
        }
    </script>
</body>
</html>